/**
 * 
 */
package exception;

/**
 * Creation date: Nov 12, 2007
 * Use case: 
 *
 * @author: cristian.rasch
 */
public class ModelException extends BaseException {

    private byte operation;

    public ModelException(byte code) {
        super(code);
    }

    public ModelException(byte code, byte operation) {
        super(code);
        this.operation = operation;
    }

    public ModelException(String message) {
        super(message);
    }

    public ModelException(String message, byte operation) {
        super(message);
        this.operation = operation;
    }

    public ModelException(byte code, String message) {
        super(code, message);
    }

    public ModelException(byte code, String message, byte operation) {
        super(code, message);
        this.operation = operation;
    }

    public ModelException(Throwable throwable) {
        super(throwable);
    }

    public ModelException(byte code, Throwable throwable) {
        super(code, throwable);
    }

    public ModelException(byte code, Throwable throwable, byte operation) {
        super(code, throwable);
        this.operation = operation;
    }

    /**
     * @return the operation
     */
    public byte getOperation() {
        return operation;
    }
}
